import request from '@/utils/request'
/**
 * get list ?
 * @param params {*}
 */
export function _getAuthorityTree () {
    return request({
        url: '/user/getAuthorityTree',
        method: 'get'
    })
}
/**
 * get row ?
 * @param params {*}
 */
 export function _find (params) {
    return request({
        url: '/user/getRoleAuthority',
        method: 'get',
        params: params
    })
}

// 新增數據
export function _post (params) {
    return request({
        url: '/user/addRole',
        method: 'post',
        data: params
    })
}
/**
 * get list ?
 * @param params {*}
 */
export function _getRoleist () {
  return request({
    url: '/user/getRoleList',
    method: 'get'
  })
}
/**
 * get list ?
 * @param params {*}
 */
export function _get (params) {
  return request({
    url: '/user/getRoleByPage',
    method: 'get',
    params: params
  })
}
